package scalaLearning.part7

class Man(val name:String)

class SuperMan{
  def fly() = {
    println("I can fly")
  }
}

object ManToSuper{
 implicit def ManToSuperMan(man:Man)=new SuperMan

}
object ImplicitMethodDemo1 {
  import ManToSuper._

  def main(args: Array[String]): Unit = {
    new Man("Jamey").fly()
  }
}
